#include <iostream>
#include <glog/logging.h>
using namespace std;
#include "part2_vector.h"

int main(int argc, char** argv)
{

    google::InitGoogleLogging(argv[0]);
    google::SetLogDestination(google::INFO, "../log/");
    FLAGS_stderrthreshold = google::INFO;

    Vector_own<int> vectorA(10, 8, 0);
    LOG(INFO) << "Hello vc" << endl;
    LOG(INFO) << "vectorA.capacity." << vectorA.getCapacity() << endl;
    LOG(INFO) << "vectorA.size() = " << vectorA.getSize() << endl;
    LOG(INFO) << "vectorA[0] = " << vectorA[0] << endl;
    LOG(INFO) << "vectorA[7] = " << vectorA[6] << endl;
    for(int i = 0; i < vectorA.getSize(); i++)
    {
        vectorA[i] = i;
        LOG(INFO) << "A[" << i << "]" << "=" <<  vectorA[i] << " ";
    }
    google::ShutdownGoogleLogging();
    return 0;
}
